package com.zmc.search.bean;

import com.zmc.common.domain.es.EsSkuEntity;
import lombok.Data;

import java.util.List;

/**
 * @Author：zmc
 * @Date：2024/11/13 11:28
 */

@Data
public class SearchResult {


    /**
     * 查询到的商品信息
     */
    private List<EsSkuEntity> products;
    //当前页码
    private Integer pageNum;
    //总记录数
    private Long total;
    //总页码
    private Integer totalPages;
    //当前查询到的结果，所有涉及到的品牌
    private List<BrandVo> brands;
    //当前查询到的结果，所有涉及到的分类
    private List<CatalogVo> catalogs;
    //当前查询到的结果，所有涉及到的属性
    private List<AttrVo> attrs;

    //=====================以上是返给页面的信息==========================

    @Data
    public static class BrandVo{
        private Long brandId;

        private String brandName;

        private String brandImg;
    }

    @Data
    public static class CatalogVo{
        private Long catalogId;

        private String catalogName;

        private String brandImg;
    }

    @Data
    public static class AttrVo {
        private Long attrId;

        private String attrName;

        private List<String> attrValue;

    }
}
